package com.restaurant.bean;

import java.util.Date;

/**
 * 订单详情
 * @author OUOrder
 */
public class Detail {

    //详情id
    private int did;
    //订单id
    private int oid;
    //商品id
    private int gid;
    //商品名字
    private String goodsName;
    //商品价格
    private double goodsPrice;
    //购买数量
    private int quantity;
    //店名
    private String restaurant;
    //购买时间
    private Date detailCreateTime;
    //更改时间
    private Date detailUpdateTime;

  public Detail() {
  }

  public Detail(int did, int oid, int gid, String goodsName, double goodsPrice, int quantity, String restaurant, Date detailCreateTime, Date detailUpdateTime) {
    this.did = did;
    this.oid = oid;
    this.gid = gid;
    this.goodsName = goodsName;
    this.goodsPrice = goodsPrice;
    this.quantity = quantity;
    this.restaurant = restaurant;
    this.detailCreateTime = detailCreateTime;
    this.detailUpdateTime = detailUpdateTime;
  }

  public int getDid() {
    return did;
  }

  public void setDid(int did) {
    this.did = did;
  }

  public int getOid() {
    return oid;
  }

  public void setOid(int oid) {
    this.oid = oid;
  }

  public int getGid() {
    return gid;
  }

  public void setGid(int gid) {
    this.gid = gid;
  }

  public String getGoodsName() {
    return goodsName;
  }

  public void setGoodsName(String goodsName) {
    this.goodsName = goodsName;
  }

  public double getGoodsPrice() {
    return goodsPrice;
  }

  public void setGoodsPrice(double goodsPrice) {
    this.goodsPrice = goodsPrice;
  }

  public int getQuantity() {
    return quantity;
  }

  public void setQuantity(int quantity) {
    this.quantity = quantity;
  }

  public String getRestaurant() {
    return restaurant;
  }

  public void setRestaurant(String restaurant) {
    this.restaurant = restaurant;
  }

  public Date getDetailCreateTime() {
    return detailCreateTime;
  }

  public void setDetailCreateTime(Date detailCreateTime) {
    this.detailCreateTime = detailCreateTime;
  }

  public Date getDetailUpdateTime() {
    return detailUpdateTime;
  }

  public void setDetailUpdateTime(Date detailUpdateTime) {
    this.detailUpdateTime = detailUpdateTime;
  }
}
